import { useState } from "react";
const useMsgHook=()=>{
    const [msg,setMsg] =useState("hello react")
    const changeMsg=()=>{
        setMsg("change")
    }
    return [msg,changeMsg]
}
export default useMsgHook;